import request from "@/api/myRequest"
 function findArticlesApi(start,limit,data){
    return request({
        url:`/lejuAdmin/productArticle/findArticles/${start}/${limit}`,
        method:'POST',
        data,
    })
}
// 删除
function delApi(id){
    return request({
        url:`/lejuAdmin/productArticle/del/${id}`,
        method:'DELETE',
    })
}
// 新增文章
function addArticle(data){
    return request({
        url:`/lejuAdmin/productArticle/addArticle`,
        method:'POST',
        data,
    })
}
// 更新文章
function updateArticle(data){
    return request({
        url:`/lejuAdmin/productArticle/updateArticle`,
        method:'POST',
        data,
    })
}
// 根据id查询文章
function productArticle(id){
    return request({
        url:`/lejuAdmin/productArticle/productArticle/${id}`,
        method:'GET',
    })
}
//变更显示状态
function changeShowStatus(data){
    return request({
        url:`/lejuAdmin/productArticle/changeShowStatus`,
        method:'POST',
        data,
    })
}
// 获取素材页面
function findMaterialByPage(start,limit){
    return request({
        url:`/lejuAdmin/material/findMaterialByPage/${start}/${limit}`,
        method:'GET',
        
    })
}
// 删除素材
function delMaterial(id){
    return request({
        url:`/lejuAdmin/material/delMaterial/${id}`,
        method:'DELETE',
    })
}
export{
    findArticlesApi,delApi,addArticle,productArticle,updateArticle,changeShowStatus,findMaterialByPage,delMaterial
}
// author: "花葬"
// collectCount: 0
// content1: ""
// content2: ""
// coverImg: "https://bufan-apitown.oss-cn-beijing.aliyuncs.com/bftec/20201112090531077Snipaste_2020-11-12_09-05-18.png"
// createTime: "2020-11-11 20:12:14"
// editorType: 0
// id: "1326497963938263042"
// isShow: 1
// modifyTime: "2020-11-19 02:51:43"
// summary: "幻灵雪域"
// title: "二次元动漫"
// viewCount: 10
// zanCount: 0